import Layout from '@/layout/index.vue';
import * as i18n from '@/utils';
let report = {
	path: '/report',
	component: Layout,
	name: '统计报表',
	meta: {
		title: i18n.t('router.Statistical'),
		icon: 'dashboard',
	  	isPermiss:'/management/report'
	},
	children: [
		{
			path: '/report/sales',
			name: '销售报表',
			component: () => import('@/views/report/sales/index.vue'),
			meta: { title: i18n.t('router.salesReport') },
	  		isPermiss:'/management/sale.sale_orders/getReportList'
		},
		{
			path: '/report/stock',
			name: '库存报表',
			component: () => import('@/views/report/stock/index.vue'),
			meta: { title: i18n.t('router.Inventory') },
	  		isPermiss:'/management/machine.machine_channel_stock_report/getList'
		},
		{
			path: '/report/Inventory',
			name: '盘点报表',
			component: () => import('@/views/report/Inventory/index.vue'),
			meta: { title: i18n.t('router.stocktaking') },
	  		isPermiss:'/management/machine.machine_check_stock_count/getList'
		},
		{
			path: '/report/grouping',
			name: '分互报表',
			component: () => import('@/views/report/grouping/index.vue'),
			meta: { title: i18n.t('router.Interactive') },
	  		isPermiss:'/management/goods.goods_hit/getList'
		},
		{
			path: '/machine/online',
			name: '运营报表',
			component: () => import('@/views/machine/online/index.vue'),
			meta: { title: i18n.t('router.Operation') },
	  		isPermiss:'/management/machine.machine_online/getList'
		},
		{
			path: '/report/supplement',
			name: '补货信息',
			component: () => import('@/views/report/supplement/index.vue'),
			meta: { title: i18n.t('router.CPFR') },
	  		isPermiss:'/management/machine.machine_channel_replenishment/getList'
		},
	]
}

export default report;